/*
 * Copyright © 2022 Dowsure
 * https://www.dowsure.com/
 *
 * All rights reserved.
 */

package com.dowsure.apisaas.model;

import com.dowsure.apisaas.annotation.RequestParamValidated;
import com.dowsure.apisaas.enums.BooleanEnums;
import com.dowsure.apisaas.enums.PlatformCodeEnums;
import lombok.Data;

/**
 * @program: apisaas-sdk
 * @description: 设置准入规则请求参数
 * @author: Dowsure
 * @create: 2022-02-15 10:12
 **/
@Data
public class PlatformRuleRequestParams {

    /**
     * Dowsure支持的平台code： AMAZON、EBAY、SHOPEE
     */
    @RequestParamValidated(required = true, msg = "Dowsure支持的平台code")
    private PlatformCodeEnums platformCode;

    /**
     * 用户（合作方）设置的在准入规则
     */
    @RequestParamValidated(msg = "用户（合作方）设置的在准入规则", maxLen = 500)
    private String ruleJson;

    /**
     * 是否启用，默认FALSE
     * TRUE（启用）、FALSE（不启用）
     */
    @RequestParamValidated(msg = "是否启用")
    private BooleanEnums ruleEnabled;

    /**
     * 重定向到用户侧进件URL
     */
    @RequestParamValidated(required = true, msg = "重定向到用户侧进件URL", maxLen = 500)
    private String redirectUrl;
}
